package com.test.application.spring.util.reflectionUtil;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;


@EqualsAndHashCode(callSuper = true)
@Data
public class Teacher extends Person {
    public Teacher(String name, Integer age, String gender) {
        super(name, age, gender);
    }

    public Teacher() {
    }

    @Override
    public void work() {
        System.out.println("老师正在教课...");
    }

    public void reading() {
        System.out.println("老师正在阅读...");
    }
}
